export function getMacHelpMd(): string {
  return `
  # 1. 使用Cmd获取
> 使用\`WLAN\`或者是\`以太网\`的\`Mac\`地址就行
\`\`\`shell
ipconfig /all
\`\`\`
# 2. 使用node获取
1. 创建\`getMac.js\`
\`\`\`shell
const os = require("os");

function getLocalMac() {
    const resultMap = new Map();

    const networkInterfaces = os.networkInterfaces();
    Object.entries(networkInterfaces).forEach(([interfaceName, macAddresses]) => {
        interfaceName = interfaceName.toLocaleLowerCase();

        const flag = interfaceName.startsWith("loop") ||
            interfaceName.startsWith("vmware") ||
            interfaceName.startsWith("docker") ||
            interfaceName.startsWith("vbox") ||
            interfaceName.startsWith("vmnet");
        if (!flag) {
            macAddresses.forEach((macAddress) => {
                resultMap.set(interfaceName, macAddress.mac);
            });
        }
    })
    console.log(resultMap)

    return resultMap;
}

export default getLocalMac()

\`\`\`

2. 使用cmd窗口打开文件所在位置
\`\`\`shell
node getMac.js
\`\`\`

  `;
}
